package com.supply.pojo;

import lombok.Data;

@Data
public class Permission {
    private Long id;

    private String name;

    private String url;

    private Long parentId;

    public Permission(Long id, String name, String url, Long parentId) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.parentId = parentId;
    }

    public Permission() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
}